// main2.dart
import 'package:flutter/material.dart';
import 'package:flutter_demo/ui/redux/ReduxPage.dart';
import 'package:flutter_demo/ui/redux/states/index.dart';
import 'package:flutter_demo/ui/redux/store/index.dart';
import 'package:flutter_redux/flutter_redux.dart';

void main() {
  runApp(StoreProvider<AppState>(store: store, child: MyApp()));
}

class MyApp extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'Flutter状态管理',
      theme: ThemeData(
        primarySwatch: Colors.blue,
        visualDensity: VisualDensity.adaptivePlatformDensity,
      ),
      home: ReduxPage(),
    );
  }
}